package com.hewl.shiro.admin.dao;

import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.hewl.shiro.admin.entity.SysRole;

public interface RoleMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);
    
    Set<String> findRoleByUid(@Param("userId") String userId);
}